{extend name="Public/public"}
{block name="title"}添加用户{/block}
{block name="main"}
  <div class="col-sm-5"> 
   <div class="widget-box"> 
    <div class="widget-header"> 
     <h4>添加用户</h4> 
    </div> 
    <div class="widget-body"> 
     <div class="widget-main no-padding"> 
      <form action="/user/insert" method="post"> 
       <!-- <legend>Form</legend> --> 
       <fieldset> 
        <label>用户昵称</label> 
        <input type="text" name="username" /> <br>
       </fieldset> 
        <fieldset> 
        <label>真实姓名</label> 
        <input type="text" name="name" /> <br>
       </fieldset> 
        <fieldset> 
        <label>密码&nbsp;&nbsp;&nbsp;&nbsp;</label> 
        <input type="password" name="password" /> <br>
       </fieldset> 
        <fieldset> 
        <label>重复密码</label> 
        <input type="password" name="repassword" /> <br>
       </fieldset> 
        <fieldset> 
        <label>Email&nbsp;&nbsp;&nbsp;</label> 
        <input type="text" name="mail" /> <br>
       </fieldset> 
        <fieldset> 
        <label>手机号码</label> 
        <input type="text" name="phone" /> <br>
       </fieldset> 
        <fieldset> 
        <label>用户组权限</label> 
        <select name="details" id="">
         {if condition="is_array($list)"}
           {foreach name="list" item="row"}
        	<option value="{$row.details}">{$row.name}</option>
         {/foreach}
         {/if}
        </select>
       </fieldset> 
       
        <div class="form-actions center"> 
        <input type="submit" class="btn btn-sm btn-success" value="添加">
       </div> 
      </form> 
     </div> 
    </div> 
   </div> 
  </div>
{/block}